
/*
* monitorApi  模块api
* */
let pieAuth = piecloud ? piecloud : "";
//let pieAuth = "";
export default {
    grafanaUrl: grafanaUrl,
    query1: pieAuth + "/prometheus/api/v1/query",
    query_range: pieAuth + "/prometheus/api/v1/query_range?query=",
    query_range1: pieAuth + "/sthx_server/monitor/monitorIndex/getRangeNetworkReceive",
    clusterNode: pieAuth + '/sthx_server/monitor/clusterNode', //创建post  查询 get 根据id查询get{id}  更新post{id}  删除delete{id}
    podsName: pieAuth + '/sthx_server/monitor/cluster/node/',
    getNodeGroupInfo: pieAuth + '/sthx_server/monitor/nodeGroup/getNodeGroup',//节点组管理界面接口
    delNodeGroup: pieAuth + '/sthx_server/monitor/nodeGroup/',//删除节点组
    createNodeGroup: pieAuth + '/sthx_server/monitor/nodeGroup',//创建节点组
    modifyNodeGroup: pieAuth + '/sthx_server/monitor/nodeGroup/',//修改节点组信息
    getNodeGroup: pieAuth + '/sthx_server/monitor/nodeGroup/getNodeGroup',//查询节点组
    clusterNodeUpdata: pieAuth + '/sthx_server/monitor/clusterNode/',//更新节点
    nodesStatus: pieAuth + '/sthx_server/monitor/clusterNode/',
    getShareStorage: pieAuth + '/sthx_server/monitor/shareStorage/getShareStorage',//查询共享存储列表
    getInfo: pieAuth + "/sthx_server/monitor/monitorIndex/getInfo",
    getCpuInfo: pieAuth + "/sthx_server/monitor/monitorIndex/getCpuInfo",
    getBaseMapByPId: pieAuth + '/sthx_server/monitor/cluster/node/',
    getServiceList: pieAuth + '/sthx_server/monitor/monitorIndex/getStatusNum',
    getRangeNodeLoad: pieAuth + '/sthx_server/monitor/monitorIndex/getRangeNodeLoad',
    getRangeCpu: pieAuth + '/sthx_server/monitor/monitorIndex/getRangeCpu',
    getRangeMemoryUsage: pieAuth + '/sthx_server/monitor/monitorIndex/getRangeMemoryUsage',

    getRangeNetworkTransmit: pieAuth + '/sthx_server/monitor/monitorIndex/getRangeNetworkReceive',
    getRangeNetworkReceive: pieAuth + '/sthx_server/monitor/monitorIndex/getRangeNetworkTransmit',

    relation: pieAuth + '/sthx_server/monitor/service/relation',
    getRangeMemory: pieAuth + '/sthx_server/monitor/monitorIndex/getRangeMemory',
    getNodeDiskDetail: pieAuth + '/sthx_server/monitor/monitorIndex/getNodeDiskDetail',
    clusterNodeDetail: pieAuth + '/sthx_server/monitor/clusterNode/',
    clusterNodeDetail2:pieAuth + '/sthx_server/monitor/clusterNode/node/',
    getClusterInfo: pieAuth + '/sthx_server/monitor/monitorIndex/getClusterInfo',
    getServiceLis: pieAuth + '/sthx_server/monitor/service/getServiceList',
    service: pieAuth + '/sthx_server/monitor/service',
    delectService: pieAuth + '/sthx_server/monitor/service/',
    type: pieAuth + '/sthx_server/monitor/service/type',
    getResourceList: pieAuth + '/sthx_server/monitor/resource/getResourceList',
    upService: pieAuth + '/sthx_server/monitor/service/',
    getReplicaList: pieAuth + '/sthx_server/monitor/service/getReplicaList',
    getServiceCustomMonitor: pieAuth + '/sthx_server/monitor/monitorIndex/getServiceCustomMonitor',
    getServiceCommonMonitor: pieAuth + '/sthx_server/monitor/monitorIndex/getServiceCommonMonitor',

     //共享存储
     shareStorage:pieAuth + '/sthx_server/monitor/shareStorage/',
    addshareStorage:pieAuth+  "/sthx_server/monitor/shareStorage",
    editshareStorage:pieAuth+'/sthx_server/monitor/shareStorage/',

     selectAll:pieAuth+'/sthx_server/monitor/monitor_message_radio_config/selectAll',
     updateById:pieAuth+'/sthx_server/monitor/monitor_message_radio_config/updateList',

     contentSelectAll:pieAuth+'/sthx_server/monitor/monitor_message_content_config/selectAll',
     updateList:pieAuth+'/sthx_server/monitor/monitor_message_content_config/updateList',

     select_all_list:pieAuth+'/sthx_server/monitor/monitor_message_user_config/select_all_list',
     configSave:pieAuth+'/sthx_server/monitor/monitor_message_user_config/save',
    //存储监控

    //资源管理
    getResourceDataList: pieAuth + '/sthx_server/monitor/resource/getResourceList',//获取全部资源
    delResource: pieAuth + '/sthx_server/monitor/resource/',//删除资源
    resourceType: pieAuth + '/sthx_server/monitor/resource/getResourceType',//获取全部类型
    updateResource: pieAuth + '/sthx_server/monitor/resource/',//更新资源
    createResource: pieAuth + '/sthx_server/monitor/resource',//创建资源

    //告警信息
    listByUserOrRole: pieAuth + '/notifications-server/message_history/listByUserOrRole',
    deleteByIds:pieAuth+'/notifications-server/message_history/deleteByIds',
    selectByCondition:pieAuth+'/notifications-server/message_history/selectByCondition',
    updateDeliveryWebStatusById:pieAuth+"/notifications-server/message_history/updateDeliveryWebStatusById/",
    //日志管理
    getLogList: pieAuth + '/api/v1/log/k8sLog',//查询日志
    //modal弹框高级设置接口
    selectFilterData:pieAuth+'/coordinator/metadata/workflow/',

    //显卡监控
    getGraphicsInfo: pieAuth + "/sthx_server/monitor/monitorIndex/getNodeGpuInfo",//获取显卡信息
    getGraphicsUtilization: pieAuth + "/sthx_server/monitor/monitorIndex/getClusterInfo",//获取显卡使用率



};
